<?php

namespace App\Controller\Example;

class CartGoodsExample extends BaseExample
{
    public $id;// int NOT NULL AUTO_INCREMENT,
    public $uid;// int NOT NULL COMMENT '用户id',
    public $cid;// int DEFAULT NULL COMMENT '购物车id',
    public $gid;// int NOT NULL COMMENT '商品id',
    public $name;// varchar(128) CHARACTER SET utf8 COLLATE utf8_general_ci NOT NULL COMMENT '商品名称',
    public $number;// int NOT NULL COMMENT '商品数量',
    public $price;// decimal(15,2) NOT NULL COMMENT '物品单价',
    public $total;// decimal(15,2) NOT NULL COMMENT '总价',
    public $integral;// decimal(15,2) DEFAULT '0.00' COMMENT '积分',
    public $time;// datetime NOT NULL DEFAULT CURRENT_TIMESTAMP COMMENT '添加时间',
    public $status;// int NOT NULL DEFAULT '1' COMMENT '状态 1,加入购物车 2,加入订单  -1删除',
    public $sku_id;// int DEFAULT NULL,
    public $type;// int NOT NULL COMMENT '商品的type',
}